Skip to content

feat(workflows): add Discord release announcement action - #56

Merged
RedStar071 merged 2 commits into
mainfrom
fix/shared-announcements
Nov 13, 2026
Merged

RedStar071 merged 2 commits into
mainfrom
fix/shared-announcements

Conversation

@RedStar071

@RedStar071 RedStar071 commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add the composite action .github/actions/announce to post release news to a Discord webhook.
  • Support three modes: packages renders npm changelog sections without AI, draft has the Pullfrog agent write a bot or site announcement for review, and post sends a reviewed draft.
  • Build the Discord payload in code, so the agent only writes words. Every message pings only the configured role.
  • Add reusable workflows reusable-announce-packages.yml and reusable-announce-release.yml. The release workflow runs draft, review, and post as separate jobs.
  • Add optional signed lifecycle callbacks (started, drafted, completed, failed) with an HMAC-SHA256 signature.
  • Add announce-action-tests.yml to run the action tests.

Testing

  • Not run: node --test '.github/actions/announce/test/*.test.ts' on this branch. Run it before merge.
  • Test files added: announcement.test.ts, collect.test.ts, discord.test.ts, and packages.test.ts. They cover parsing, rendering, context collection, Discord limits, and packages output.
  • Not run: dry-run: true against a real release.
  • Not run: draft mode with a live Pullfrog provider key.
  • Not run: signed callback delivery to a live receiver.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; all previous findings are addressed.

Reviews (2) · Last reviewed commit: "fix(announce): fail loudly instead of dr..." · Reviewed by Greptile

- Add composite action that posts release news to a Discord webhook
- `packages` mode renders npm releases from CHANGELOG.md with no AI
- `draft` mode has a Pullfrog agent write a JSON announcement for review, and `post` sends it after approval
- Add reusable workflows for package and bot or site releases, with a reviewed post job
- Add optional HMAC-signed lifecycle callbacks and node:test unit tests
@coldtea-pr-lens

Copy link
Copy Markdown

Note

Every change sits outside the source tree, in folders like docs/ or .github/, so PR Lens left this pull request undrawn. Comment @pr-lens draw to draw it

github.comment.notice: false in .github/pr-lens.yml turns this note off

Comment thread .github/actions/announce/src/github.ts Resolved
Comment thread .github/actions/announce/src/collect.ts Resolved
Comment thread .github/actions/announce/src/collect.ts Resolved
Comment thread .github/actions/announce/src/discord.ts Resolved
Comment thread .github/actions/announce/src/notify.ts Resolved
Comment thread .github/actions/announce/src/main.ts Resolved
Review of #56 found paths where the announcement silently lost or
mislabelled released work:

- read every compare page, and fail past 5000 commits
- retry pull request lookups, then fail the collection
- drop only the default-branch rollup, keep hotfixes into release
- fail when a published package has no changelog section
- wrap the dependency-only list between whole links
- give callbacks a fixed sequence per event, and split mode from kind
@RedStar071
RedStar071 merged commit dce4aeb into main Nov 13, 2026
5 checks passed
@RedStar071
RedStar071 deleted the fix/shared-announcements branch November 13, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant